package main.gui.dataobjecteditor;

import java.awt.FlowLayout;

import javax.swing.JPanel;

public abstract class DataAttributePanel extends JPanel {

	private static final long serialVersionUID = 313083953248604064L;

	protected static final int MIN_WIDGET_WIDTH = 200;
	protected static final int MIN_WIDGET_HEIGHT = 25;
	
	protected String fqClassName, objectGUID, attrName;

	/**
	 * Adds the name to the left side of the panel.
	 */
	public DataAttributePanel(String attrName, String objectGUID,
			String fqClassName) {
		super();
		// Setup
		this.attrName = attrName;
		this.fqClassName = fqClassName;
		this.objectGUID = objectGUID;
		this.setLayout(new FlowLayout(FlowLayout.LEFT));
	}

	/**
	 * Adds and connects required GUI elements.
	 */
	public abstract void buildPanel(Object value);

}
